<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('编辑已办毕工单')"/>
</head>

<body style="background-color: #F4F6FA">
<div class="main-content" style="margin: 0;padding: 0">

    <form id="form-user-add" th:object="${sendBackEty}" class="form-horizontal" style="background-color: #F4F6FA">
        <input type="hidden" th:field="*{pkId}"/>

        <div class="col-sm-12" style="display: flex">
            <div class="col-sm-12 entering-page">
                <!--    延期申请    -->
                <div class="col-sm-12 tltieBoder">
                    <div class="blueBorder"></div>
                    <h4 style="margin:0 0 0 10px">修改办理结果</h4>
                </div>
                <div class="col-sm-12">
                    <div class="form-group">
                        <label class="col-sm-3 control-label entering-pd">签收人：</label>
                        <div class="col-sm-6">
                            <input th:field="*{getPerson}" type="text" class="form-control" />
                        </div>
                    </div>
                </div>
                <div class="col-sm-12">
                    <div class="form-group">
                        <label class="col-sm-3 control-label entering-pd">联系电话：</label>
                        <div class="col-sm-6">
                            <input th:field="*{bdutyTel}" type="text" class="form-control" >
                        </div>
                    </div>
                </div>
                <div class="col-sm-12">
                    <div class="form-group">
                        <label class="col-sm-3 control-label entering-pd">执行处(科)室：</label>
                        <div class="col-sm-6">
                            <input th:field="*{bdutyDept}" type="text" class="form-control" >
                        </div>
                    </div>
                </div>
                <div class="col-sm-12">
                    <div class="form-group">
                        <label class="col-sm-3 control-label entering-pd">回复人：</label>
                        <div class="col-sm-6">
                            <input name="buserName" th:value="${sendBackEty.buserName == null ? user.userName:sendBackEty.buserName}" type="text" class="form-control" >
<!--                            <input type="hidden" name="buserNo" th:value="${user.userNo}"/>-->
                        </div>
                    </div>
                </div>
                <div class="col-sm-12">
                    <div class="form-group">
                        <label class="col-sm-3 control-label entering-pd">回复时间：</label>
                        <div class="col-sm-6">
                            <input name="backTime" th:field="*{backTime}" th:value="${sendBackEty.backTime == null ? nowTime : #dates.format(sendBackEty.backTime,'yyyy-MM-dd HH:mm:ss')}" type="text" class="form-control" >
                        </div>
                    </div>
                </div>
                <div class="col-sm-12">
                    <div class="form-group">
                        <label class="col-sm-3 control-label entering-pd" style="color: red">回复内容：</label>
                        <div class="col-sm-6">
                            <textarea th:field="*{backDesc}" maxlength="3500"
                                      id="backDesc"
                                      class="form-control"
                                      cols="60"
                                      rows="3"
                                      required="required"></textarea>
                        </div>
                    </div>
                </div>
                <div class="col-sm-12">
                    <div class="form-group">
                        <label class="col-sm-3 control-label entering-pd">备注：</label>
                        <div class="col-sm-6">
                            <input th:field="*{backRemark}" type="text" class="form-control" >
                        </div>
                    </div>
                </div>
                <!--按钮-->
                <div class="col-sm-12" style="display: flex;justify-content:space-around;margin-top:20px;margin-bottom: 20px;">
                    <div class="form-group">
                        <div class="col-sm-3" style="display: flex;justify-content: space-around;margin:10px 0px 10px 0px">
                            <button type="button" class="btn btn-sm btn-success" onclick="editReply()">修改</button>&nbsp;&nbsp;&nbsp;&nbsp;
                            <button type="button" class="btn btn-sm btn-light" onclick="closeItem()">关闭</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </form>
</div>

<th:block th:include="include :: footer"/>
<script>
    var prefix = ctx + "gaoxin/system/mTelWF";
    function editReply(){
        if($.validate.form()){
            var backDesc = "reply"+$("#backDesc").val();
            $("#backDesc").val(backDesc);
            var data = $('#form-user-add').serializeArray();
            var url = prefix + "/cmnFile/editReply"
            $.operate.saveTab(url,data);
        }
    }


</script>
</body>
</html>

